﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>欢迎来到JavaScript</title>
</head>
<body>

    调<script>showTest()</script>用函数：
    <a href="javascript:showTest()">点击一下</a>
<br><br>
    房价8500元平方，一套80平米的房总价是： <div id="username"></div>++
    <input type="button" onclick="showTest(j3);" value="点bai我"/>
<script>
function showTest(){ 
    const j1=8500;
    const j2=80;
    const j3=j1*j2;
    console.log(j3);
document.getElementById("username").innerHTML=j3;
};
document.write("123");
</script>
<br>
<br>

<br>
    <input type="text" value="单击一下" onclick="alert(`老大你好`)" />

<script>
    document.write(`我喜欢学JS`+"<br>");
    document.write(`我喜欢学JS`+`<br/>`);
    document.write(`<img src="https://www.z01.com/Template/office/style/images/home_product01.png" />`);
    // alert(`月落乌啼霜满天\n江`+`<br/>`);

    //当前时间
    /*
    alert(`当前时间:`+ new Date().toLocaleDateString() + new Date().toLocaleTimeString()+`完整时间`+new Date().toLocaleString());

*/
    document.title=`我喜欢学JS`;
    let fage=333993;
    console.log(fage);
    const zoomla=44;
    var a2=`中华人民共和国`;
    console.log("你好:"+zoomla);
    console.log(zoomla);
    console.log(`a2的值是：`+a2);
    console.log(`a2的值是：`+a2);
</script>    
    
</body>
</html>